import request from '@/utils/request'

// 登录方法
export function getList(data) {
  return request({
    url: '/testMenu/list',
    method: 'get',
    params: data
  })
}
export function creatItem(data) {
  return request({
    url: '/testMenu',
    method: 'post',
    data: data,
  })
}
export function deleteItem(id) {
  return request({
    url: '/testMenu/' + id,
    method: 'delete',
  })
}
export function editItem(data) {
  return request({
    url: '/testMenu',
    method: 'put',
    data
  })
}
export function getOne(id) {
  return request({
    url: '/testMenu/' + id,
    method: 'get',
  })
}